From: Elliott Mitchell Date: Fri, 17 Jul 2020 06:37:42 +0000 (-0700) Subject: d/shuffle-binaries: Add quoting for potentially changeable variables X-Git-Tag: archive/raspbian/4.14.1+11-gb0b734a8b3-1+rpi1^2~76 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=833c22e0fb61985d553a904259c5234aa2573bda;p=xen.git d/shuffle-binaries: Add quoting for potentially changeable variables These should originate with the owner of a build system and are unlikely to get hazardous values. This script though *should* work on a system with such a bizarre setup. On general principle, add double-quotes. Signed-off-by: Elliott Mitchell Acked-by: Hans van Kranenburg --- diff --git a/debian/shuffle-binaries b/debian/shuffle-binaries index 31aa01e2bd..8a823da10b 100755 --- a/debian/shuffle-binaries +++ b/debian/shuffle-binaries @@ -2,7 +2,7 @@ set -e set -o pipefail -version=$1; shift +version="$1"; shift # We wrap all of the programs in /usr/bin with a script # (xen-utils-wrapper) which chooses the version corresponding to the @@ -17,10 +17,10 @@ version=$1; shift list=debian/libxenmiscV.install.vsn-in t=debian/tmp -vd=/usr/lib/xen-$version/bin +vd="/usr/lib/xen-$version/bin" cd=/usr/lib/xen-common/bin -mkdir -p $t/$vd +mkdir -p "$t/$vd" for binary in `find $t/usr/{bin,sbin} -type f`; do reason=''